Optimal. Leaf size=128 \[ \frac {1}{16} (2 a-b) \left (8 a^2-8 a b+5 b^2\right ) x+\frac {b \left (64 a^2-54 a b+15 b^2\right ) \cosh (c+d x) \sinh (c+d x)}{48 d}+\frac {5 (2 a-b) b^2 \cosh (c+d x) \sinh ^3(c+d x)}{24 d}+\frac {b \cosh (c+d x) \sinh (c+d x) \left (a+b \sinh ^2(c+d x)\right )^2}{6 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 128, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3259, 3248}
\begin {gather*} \frac {b \left (64 a^2-54 a b+15 b^2\right ) \sinh (c+d x) \cosh (c+d x)}{48 d}+\frac {1}{16} x (2 a-b) \left (8 a^2-8 a b+5 b^2\right )+\frac {5 b^2 (2 a-b) \sinh ^3(c+d x) \cosh (c+d x)}{24 d}+\frac {b \sinh (c+d x) \cosh (c+d x) \left (a+b \sinh ^2(c+d x)\right )^2}{6 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3248
Rule 3259
Rubi steps
\begin {align*} \int \left (a+b \sinh ^2(c+d x)\right )^3 \, dx &=\frac {b \cosh (c+d x) \sinh (c+d x) \left (a+b \sinh ^2(c+d x)\right )^2}{6 d}+\frac {1}{6} \int \left (a+b \sinh ^2(c+d x)\right ) \left (a (6 a-b)+5 (2 a-b) b \sinh ^2(c+d x)\right ) \, dx\\ &=\frac {1}{16} (2 a-b) \left (8 a^2-8 a b+5 b^2\right ) x+\frac {b \left (64 a^2-54 a b+15 b^2\right ) \cosh (c+d x) \sinh (c+d x)}{48 d}+\frac {5 (2 a-b) b^2 \cosh (c+d x) \sinh ^3(c+d x)}{24 d}+\frac {b \cosh (c+d x) \sinh (c+d x) \left (a+b \sinh ^2(c+d x)\right )^2}{6 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 95, normalized size = 0.74 \begin {gather*} \frac {12 (2 a-b) \left (8 a^2-8 a b+5 b^2\right ) (c+d x)+9 b \left (16 a^2-16 a b+5 b^2\right ) \sinh (2 (c+d x))+9 (2 a-b) b^2 \sinh (4 (c+d x))+b^3 \sinh (6 (c+d x))}{192 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.91, size = 102, normalized size = 0.80
method | result | size |
default | \(a^{3} x +\frac {\left (-\frac {3}{16} b^{3}+\frac {3}{8} a \,b^{2}\right ) \sinh \left (4 d x +4 c \right )}{4 d}+\frac {\left (\frac {15}{32} b^{3}-\frac {3}{2} a \,b^{2}+\frac {3}{2} a^{2} b \right ) \sinh \left (2 d x +2 c \right )}{2 d}-\frac {5 b^{3} x}{16}+\frac {9 a \,b^{2} x}{8}-\frac {3 a^{2} b x}{2}+\frac {b^{3} \sinh \left (6 d x +6 c \right )}{192 d}\) | \(102\) |
risch | \(a^{3} x -\frac {5 b^{3} x}{16}+\frac {9 a \,b^{2} x}{8}-\frac {3 a^{2} b x}{2}+\frac {b^{3} {\mathrm e}^{6 d x +6 c}}{384 d}-\frac {3 \,{\mathrm e}^{4 d x +4 c} b^{3}}{128 d}+\frac {3 \,{\mathrm e}^{4 d x +4 c} a \,b^{2}}{64 d}+\frac {3 \,{\mathrm e}^{2 d x +2 c} a^{2} b}{8 d}-\frac {3 \,{\mathrm e}^{2 d x +2 c} a \,b^{2}}{8 d}+\frac {15 \,{\mathrm e}^{2 d x +2 c} b^{3}}{128 d}-\frac {3 \,{\mathrm e}^{-2 d x -2 c} a^{2} b}{8 d}+\frac {3 \,{\mathrm e}^{-2 d x -2 c} a \,b^{2}}{8 d}-\frac {15 \,{\mathrm e}^{-2 d x -2 c} b^{3}}{128 d}+\frac {3 \,{\mathrm e}^{-4 d x -4 c} b^{3}}{128 d}-\frac {3 \,{\mathrm e}^{-4 d x -4 c} a \,b^{2}}{64 d}-\frac {b^{3} {\mathrm e}^{-6 d x -6 c}}{384 d}\) | \(237\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 197, normalized size = 1.54 \begin {gather*} \frac {3}{64} \, a b^{2} {\left (24 \, x + \frac {e^{\left (4 \, d x + 4 \, c\right )}}{d} - \frac {8 \, e^{\left (2 \, d x + 2 \, c\right )}}{d} + \frac {8 \, e^{\left (-2 \, d x - 2 \, c\right )}}{d} - \frac {e^{\left (-4 \, d x - 4 \, c\right )}}{d}\right )} - \frac {3}{8} \, a^{2} b {\left (4 \, x - \frac {e^{\left (2 \, d x + 2 \, c\right )}}{d} + \frac {e^{\left (-2 \, d x - 2 \, c\right )}}{d}\right )} + a^{3} x - \frac {1}{384} \, b^{3} {\left (\frac {{\left (9 \, e^{\left (-2 \, d x - 2 \, c\right )} - 45 \, e^{\left (-4 \, d x - 4 \, c\right )} - 1\right )} e^{\left (6 \, d x + 6 \, c\right )}}{d} + \frac {120 \, {\left (d x + c\right )}}{d} + \frac {45 \, e^{\left (-2 \, d x - 2 \, c\right )} - 9 \, e^{\left (-4 \, d x - 4 \, c\right )} + e^{\left (-6 \, d x - 6 \, c\right )}}{d}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 165, normalized size = 1.29 \begin {gather*} \frac {3 \, b^{3} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{5} + 2 \, {\left (5 \, b^{3} \cosh \left (d x + c\right )^{3} + 9 \, {\left (2 \, a b^{2} - b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} + 6 \, {\left (16 \, a^{3} - 24 \, a^{2} b + 18 \, a b^{2} - 5 \, b^{3}\right )} d x + 3 \, {\left (b^{3} \cosh \left (d x + c\right )^{5} + 6 \, {\left (2 \, a b^{2} - b^{3}\right )} \cosh \left (d x + c\right )^{3} + 3 \, {\left (16 \, a^{2} b - 16 \, a b^{2} + 5 \, b^{3}\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{96 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 350 vs.
\(2 (119) = 238\).
time = 0.49, size = 350, normalized size = 2.73 \begin {gather*} \begin {cases} a^{3} x + \frac {3 a^{2} b x \sinh ^{2}{\left (c + d x \right )}}{2} - \frac {3 a^{2} b x \cosh ^{2}{\left (c + d x \right )}}{2} + \frac {3 a^{2} b \sinh {\left (c + d x \right )} \cosh {\left (c + d x \right )}}{2 d} + \frac {9 a b^{2} x \sinh ^{4}{\left (c + d x \right )}}{8} - \frac {9 a b^{2} x \sinh ^{2}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{4} + \frac {9 a b^{2} x \cosh ^{4}{\left (c + d x \right )}}{8} + \frac {15 a b^{2} \sinh ^{3}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{8 d} - \frac {9 a b^{2} \sinh {\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8 d} + \frac {5 b^{3} x \sinh ^{6}{\left (c + d x \right )}}{16} - \frac {15 b^{3} x \sinh ^{4}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{16} + \frac {15 b^{3} x \sinh ^{2}{\left (c + d x \right )} \cosh ^{4}{\left (c + d x \right )}}{16} - \frac {5 b^{3} x \cosh ^{6}{\left (c + d x \right )}}{16} + \frac {11 b^{3} \sinh ^{5}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{16 d} - \frac {5 b^{3} \sinh ^{3}{\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{6 d} + \frac {5 b^{3} \sinh {\left (c + d x \right )} \cosh ^{5}{\left (c + d x \right )}}{16 d} & \text {for}\: d \neq 0 \\x \left (a + b \sinh ^{2}{\left (c \right )}\right )^{3} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 177, normalized size = 1.38 \begin {gather*} \frac {b^{3} e^{\left (6 \, d x + 6 \, c\right )}}{384 \, d} - \frac {b^{3} e^{\left (-6 \, d x - 6 \, c\right )}}{384 \, d} + \frac {1}{16} \, {\left (16 \, a^{3} - 24 \, a^{2} b + 18 \, a b^{2} - 5 \, b^{3}\right )} x + \frac {3 \, {\left (2 \, a b^{2} - b^{3}\right )} e^{\left (4 \, d x + 4 \, c\right )}}{128 \, d} + \frac {3 \, {\left (16 \, a^{2} b - 16 \, a b^{2} + 5 \, b^{3}\right )} e^{\left (2 \, d x + 2 \, c\right )}}{128 \, d} - \frac {3 \, {\left (16 \, a^{2} b - 16 \, a b^{2} + 5 \, b^{3}\right )} e^{\left (-2 \, d x - 2 \, c\right )}}{128 \, d} - \frac {3 \, {\left (2 \, a b^{2} - b^{3}\right )} e^{\left (-4 \, d x - 4 \, c\right )}}{128 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.75, size = 123, normalized size = 0.96 \begin {gather*} \frac {\frac {45\,b^3\,\mathrm {sinh}\left (2\,c+2\,d\,x\right )}{4}-\frac {9\,b^3\,\mathrm {sinh}\left (4\,c+4\,d\,x\right )}{4}+\frac {b^3\,\mathrm {sinh}\left (6\,c+6\,d\,x\right )}{4}-36\,a\,b^2\,\mathrm {sinh}\left (2\,c+2\,d\,x\right )+36\,a^2\,b\,\mathrm {sinh}\left (2\,c+2\,d\,x\right )+\frac {9\,a\,b^2\,\mathrm {sinh}\left (4\,c+4\,d\,x\right )}{2}+48\,a^3\,d\,x-15\,b^3\,d\,x+54\,a\,b^2\,d\,x-72\,a^2\,b\,d\,x}{48\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________